const Koa= require('koa');

const app= new Koa();

app.use(async(ctx,next)=>{
	await next();
	ctx.response.type='text/html';
	ctx.response.body='<h1>Hello,World!</h1>';
});

app.listen(3001);
console.log('koa2 run 3001');